home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / teglp.zip / SAMPROGS.ZIP / SAMC0310.PAS < prev    next >
Pascal/Delphi Source File  |  1990-06-27  |  857b  |  53 lines

  1. {$F+}  { -- far code model is required for any functions that }
  2.        { -- are to be used as Event Handlers }
  3.  
  4. Uses
  5.     dos,
  6.     graph,
  7.  
  8.     virtmem,
  9.     fastgrph,
  10.     TEGLIntr,
  11.     TEGLICON,
  12.     TEGLGRPH,
  13.     TEGLUnit,
  14.     TEGLMenu,
  15.     SenseMs,
  16.     DebugUnt,
  17.     TEGLEasy;
  18.  
  19. { -- insert variables here }
  20.  
  21. VAR FS : ImageStkPtr;
  22.  
  23.  
  24. { -- insert procedures and functions here }
  25.  
  26.  
  27.  
  28. BEGIN
  29.  
  30.   EasyTEGL;
  31.  
  32.   { -- insert the example code here }
  33.   { -- press Ctrl-Break to exit program }
  34.  
  35.   PushImage(1,1,100,100);
  36.   ShadowBox(1,1,100,100);
  37.   fs := StackPtr;
  38.  
  39.   PushImage(50,50,150,150);
  40.   ShadowBox(50,50,150,150);
  41.  
  42.   WHILE Mouse_Buttons = 0 DO;
  43.  
  44.   PrepareForUpdate(fs);
  45.   SetColor(black);
  46.   Circle(fs^.x+48,fs^.y+45,40);
  47.   CommitUpdate;
  48.  
  49.   { -- control is then passed to the supervisor }
  50.  
  51.   TEGLSupervisor;
  52. END.
  53.